<template>
  <div class="vaccination-area" @click="onVaccinationClick">
    <div class="content">
      <van-icon name="bulb-o" class="icon" color="#0080FF" size="24" />
      <span class="text">预防接种专区</span>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const onVaccinationClick = () => {
  router.push('/vaccination')
}
</script>

<style scoped lang="scss">
.vaccination-area {
  margin: 12px;
  padding: 16px;
  background: #E6F3FF;
  border-radius: 8px;

  .content {
    display: flex;
    align-items: center;
    justify-content: center;

    .icon {
      margin-right: 8px;
    }

    .text {
      font-size: 16px;
      color: #0080FF;
      font-weight: 500;
    }
  }
}
</style>